package com.bjpowernode.service.impl;

import com.bjpowernode.dao.CommentDao;
import com.bjpowernode.service.CommentService;
import com.bjpowernode.user.Comment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {

    @Resource
    private CommentDao commentDao;

    @Override
    public List<Comment> findComment(Integer id) {
        return commentDao.selectComment(id);
    }

    @Override
    public int addComment(Comment comment) {
        return commentDao.insertComment(comment);
    }
}
